﻿using System.Linq;
using NpCrm.DataAccess.Core;
using NpCrm.Domain;

namespace NpCrm.DataAccess.Contracts
{
    public interface IContactRepository : IRepository<Contact, int>
    {
        IQueryable<Contact> GetByName(string lastName);
        IQueryable<Contact> GetByName(string lastName, string firstName);
        IQueryable<Contact> GetByTaxId(string taxId);
        IQueryable<Contact> GetByPhone(string phoneNo);
        IQueryable<Contact> GetByEmail(string emailAddress);
    }
}
